#FROM 172.31.75.188/zhilink/ubuntu:14.04.1_v01  
FROM zhilink/ubuntu:14.04.1
MAINTAINER hardyxia <1009254417@qq.com>

#安装RabbitMQ
RUN apt-get update -y && apt-get install wget -yq \
    && echo 'deb http://www.rabbitmq.com/debian/ testing main' | tee /etc/apt/sources.list.d/rabbitmq.list \
    && wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc |sudo apt-key add -  \
    && apt-get install rabbitmq-server -y \
    && /usr/sbin/rabbitmq-plugins enable rabbitmq_management \
    && echo "[{rabbit, [{loopback_users, []}]}]." > /etc/rabbitmq/rabbitmq.config 

#配置
ADD start.sh /start.sh
EXPOSE 5672 15672 

#启动
CMD ["/start.sh"]

